/*
 * Copyright [duowan.com]
 * Web Site: http://www.duowan.com
 * Since 2005 - 2014
 */

package com.duowan.realtime.common.base;

import java.util.Date;

import com.duowan.realtime.model.BloomfilterGroup;
import com.duowan.realtime.query.BloomfilterGroupQuery;


/**
 * 用于生成BloomfilterGroup相关数据对象的默认值
 * 
 * @author badqiu email:badqiu(a)gmail.com
 * @version 1.0
 * @since 1.0
 * 
 */
public class BloomfilterGroupDataFactory {
	
	public static BloomfilterGroupQuery newBloomfilterGroupQuery() {
		BloomfilterGroupQuery query = new BloomfilterGroupQuery();
		query.setPage(1);
		query.setPageSize(10);
		
	  	query.setBloomfilterGroup(new String("1"));
	  	query.setElementNumber(new Long("1"));
	  	query.setPositiveRate(new Double("1"));
	  	query.setTimeout(new Integer("1"));
		query.setCreateTimeBegin(new Date(System.currentTimeMillis()));
		query.setCreateTimeEnd(new Date(System.currentTimeMillis()));
		return query;
	}
	
	public static BloomfilterGroup newBloomfilterGroup() {
		BloomfilterGroup obj = new BloomfilterGroup();
		
	  	obj.setBloomfilterGroup(new java.lang.String("1"));
	  	obj.setElementNumber(new java.lang.Long("1"));
	  	obj.setPositiveRate(new java.lang.Double("1"));
	  	obj.setTimeout(new java.lang.Integer("1"));
	  	obj.setCreateTime(new java.util.Date(System.currentTimeMillis()));
		return obj;
	}
}